<div class="header" >
    <h1 class="logo">
  		<img ms-attr="{src:@logo}" alt="">
    </h1>
    <div class="user">
  		<img src="" alt="">
    </div>
    <div class="avatar" ms-if="@config.currPath!='login'">
		<a href=""  ms-if="@userInfo" ms-click="@showUserMenu">
			<img ms-attr="{src:@userInfo.headPortraitUri}" alt="">

		</a>
		<a href="login.html" ms-if="@userInfo==''" class="loginTip">登录</a>
		<ul class="user-menu">
			<li><a href="user.html">主页</a></li>
			<li><a href="" ms-click="@logout">退出</a></li>
		</ul>
	</div>
	<ul class="nav" ms-if="@config.currPath!='login'">
		<li ms-for="el in @nav"><a ms-attr="{href:@el.href}" ms-class="@config.currPath==el.path?'active':''">{{el.name}}</a></li>
	</ul>

</div>
